/*
 * Document.cpp
 *
 *  Created on: 2012-9-20
 *      Author: yangentao@gmail.com
 */

#include "Document.h"

Document::Document() {

}

Document::~Document() {
}

void Document::setText(String text) {
	textBuffer.setText(text);
}
String Document::getText() {
	return textBuffer.getText();
}
void Document::clearUndoHistory() {
	textBuffer.clearUndoHistory();
}

String Document::getLineText(int line) {
	return textBuffer.getLineText(line);
}
int Document::getLineCount() {
	return textBuffer.getLineCount();
}
